import unittest


class DemoTestCase(unittest.TestCase):
    def test01(self):
        # 断言1==1测试用例通过
        self.assertEqual(1, 1, msg='断言失败')

    def test02(self):
        # 断言1!=2测试用例通过
        self.assertNotEqual(1, 2, msg='断言失败')

    def test03(self):
        # 断言值为True,测试用例通过
        self.assertTrue(1, msg='断言失败')

    def test04(self):
        # 断言值为None,测试用例通过
        self.assertIsNone(None, msg='断言失败')

    def test05(self):
        # 断言值为None,测试用例通过
        self.assertIn('你', '你好', msg='断言失败')


if __name__ == '__main__':
    unittest.main(verbosity=2)
